##全局变量
#--------------------------------#
install_path=/home/sunqian;
cpu_num=`grep -c "processor" /proc/cpuinfo`; #CPU核数
netcard=`cat /proc/net/dev|sort -rn -k2|awk '{print $1}'|awk NR==1|awk -F ':' '{print $1}'`;#网卡名称
ip_addr=`ip a|grep $netcard|grep inet|awk '{print $2}'|awk -F '/' '{print $1}'` #ip地址
osType=`cat /etc/os-release|grep ID |awk NR==1|awk -F \" '{print $2}'`
basearch=`arch`
#--------------------------------#
#--------------------------------#
ethtool -L $netcard combined 8
i=0;
for irq in `cat /proc/interrupts|grep $netcard| awk -F ':' '{print $1}'`
do
	echo $i > /proc/irq/$irq/smp_affinity_list
	i=$(( $i + 1 ))
done
